<template>
  <div class="test-container">
    <IndexImage
      src="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?fit=crop&crop=entropy&w=3456&h=2304"
      placeholder="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?w=100"
      :duration="1000"
      @load="handleloaded"
    />
  </div>
</template>

<script>
import IndexImage from "./IndexImage";
export default {
  components: {
    IndexImage,
  },
  methods: {
    handleloaded() {
      console.log("handleloaded")
    },
  },
};
</script>

<style scoped>
.test-container {
  position:relative;
  width: 500px;
  height: 400px;
  border: 1px solid;
  margin: 40px auto;
}
</style>